const http = uni.$u.http

// 首页-新上好课
export const mostNew = (data) => http.post('/course/mostNew',data)
// 首页-推荐好课
export const recommendCourse = (data) => http.post('/course/search',data)
// 首页-大家都在看
export const mostHeatCourse = (data) => http.post('/course/mostHeat',data)
// 分类 - 左侧列表
export const getFirstCategorys = () => http.get('/course/category/getFirstCategorys')
// 分类 - 右侧列表
export const getSecondCategorys = (data) => http.get('/course/category/getSecondCategorys',{data})